package com.tepth.busfix.main.chooseoperator;

import com.tepth.busfix.bean.reponse.TroubleClassification;
import com.tepth.busfix.network.ApiModel;
import com.tepth.busfix.network.Network;

import java.util.List;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;

/**
 * Created by TMVPHelper on 2017/03/16
 */
public class ChooseOperatorModel implements ChooseOperatorContract.Model {

    @Override
    public Observable<ApiModel<List<TroubleClassification>>> getTroubleClassification(String authKey) {
        return Network.getApiService().troubleClassification(authKey).subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread());
    }
}